package view.touchability;

import java.awt.AWTException;
import java.awt.Color;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;
import static java.awt.event.KeyEvent.VK_CAPS_LOCK;

/**
 * Opretter nyt ScreenKeyBoard
 * 
 */
public class ScreenKeyboard extends javax.swing.JFrame {

    public ScreenKeyboard() {
        initComponents();       
        setSize(780, 320);        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        knap2 = new javax.swing.JButton();
        knap3 = new javax.swing.JButton();
        knap6 = new javax.swing.JButton();
        knap5 = new javax.swing.JButton();
        knap4 = new javax.swing.JButton();
        knap9 = new javax.swing.JButton();
        knap8 = new javax.swing.JButton();
        knap7 = new javax.swing.JButton();
        knap0 = new javax.swing.JButton();
        knap1 = new javax.swing.JButton();
        knapSlet = new javax.swing.JButton();
        knapW = new javax.swing.JButton();
        knapQ = new javax.swing.JButton();
        knapE = new javax.swing.JButton();
        knapR = new javax.swing.JButton();
        knapT = new javax.swing.JButton();
        knapY = new javax.swing.JButton();
        knapU = new javax.swing.JButton();
        knapI = new javax.swing.JButton();
        knapO = new javax.swing.JButton();
        knapP = new javax.swing.JButton();
        knapJ = new javax.swing.JButton();
        knapH = new javax.swing.JButton();
        knapG = new javax.swing.JButton();
        knapF = new javax.swing.JButton();
        knapD = new javax.swing.JButton();
        knapS = new javax.swing.JButton();
        knapA = new javax.swing.JButton();
        knapÅ = new javax.swing.JButton();
        knapK = new javax.swing.JButton();
        knapL = new javax.swing.JButton();
        knapÆ = new javax.swing.JButton();
        knapØ = new javax.swing.JButton();
        knapKroko = new javax.swing.JButton();
        knapZ = new javax.swing.JButton();
        knapX = new javax.swing.JButton();
        knapC = new javax.swing.JButton();
        knapV = new javax.swing.JButton();
        knapB = new javax.swing.JButton();
        knapN = new javax.swing.JButton();
        knapM = new javax.swing.JButton();
        knapKomma = new javax.swing.JButton();
        knapPunktum = new javax.swing.JButton();
        knapBindestreg = new javax.swing.JButton();
        knapSpace = new javax.swing.JButton();
        backspaceKnap = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setAlwaysOnTop(true);
        setBackground(new java.awt.Color(153, 51, 255));
        setFocusableWindowState(false);
        setResizable(false);

        jPanel1.setBackground(java.awt.SystemColor.inactiveCaption);
        jPanel1.setLayout(null);

        knap2.setText("2");
        knap2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap2.setContentAreaFilled(false);
        knap2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap2ActionPerformed(evt);
            }
        });
        jPanel1.add(knap2);
        knap2.setBounds(80, 10, 60, 42);

        knap3.setText("3");
        knap3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap3.setContentAreaFilled(false);
        knap3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap3ActionPerformed(evt);
            }
        });
        jPanel1.add(knap3);
        knap3.setBounds(150, 10, 60, 42);

        knap6.setText("6");
        knap6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap6.setContentAreaFilled(false);
        knap6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap6ActionPerformed(evt);
            }
        });
        jPanel1.add(knap6);
        knap6.setBounds(360, 10, 60, 42);

        knap5.setText("5");
        knap5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap5.setContentAreaFilled(false);
        knap5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap5ActionPerformed(evt);
            }
        });
        jPanel1.add(knap5);
        knap5.setBounds(290, 10, 60, 42);

        knap4.setText("4");
        knap4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap4.setContentAreaFilled(false);
        knap4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap4ActionPerformed(evt);
            }
        });
        jPanel1.add(knap4);
        knap4.setBounds(220, 10, 60, 42);

        knap9.setText("9");
        knap9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap9.setContentAreaFilled(false);
        knap9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap9ActionPerformed(evt);
            }
        });
        jPanel1.add(knap9);
        knap9.setBounds(570, 10, 60, 42);

        knap8.setText("8");
        knap8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap8.setContentAreaFilled(false);
        knap8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap8ActionPerformed(evt);
            }
        });
        jPanel1.add(knap8);
        knap8.setBounds(500, 10, 60, 42);

        knap7.setText("7");
        knap7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap7.setContentAreaFilled(false);
        knap7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap7ActionPerformed(evt);
            }
        });
        jPanel1.add(knap7);
        knap7.setBounds(430, 10, 60, 42);

        knap0.setText("0");
        knap0.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap0.setContentAreaFilled(false);
        knap0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap0ActionPerformed(evt);
            }
        });
        jPanel1.add(knap0);
        knap0.setBounds(640, 10, 60, 42);

        knap1.setText("1");
        knap1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knap1.setContentAreaFilled(false);
        knap1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knap1ActionPerformed(evt);
            }
        });
        jPanel1.add(knap1);
        knap1.setBounds(10, 10, 60, 42);

        knapSlet.setBackground(new java.awt.Color(0, 0, 0));
        knapSlet.setText("TAB");
        knapSlet.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapSlet.setContentAreaFilled(false);
        knapSlet.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapSletActionPerformed(evt);
            }
        });
        jPanel1.add(knapSlet);
        knapSlet.setBounds(10, 210, 130, 50);

        knapW.setText("W");
        knapW.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapW.setContentAreaFilled(false);
        knapW.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapWActionPerformed(evt);
            }
        });
        jPanel1.add(knapW);
        knapW.setBounds(80, 60, 60, 42);

        knapQ.setText("Q");
        knapQ.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapQ.setContentAreaFilled(false);
        knapQ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapQActionPerformed(evt);
            }
        });
        jPanel1.add(knapQ);
        knapQ.setBounds(10, 60, 60, 42);

        knapE.setText("E");
        knapE.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapE.setContentAreaFilled(false);
        knapE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapEActionPerformed(evt);
            }
        });
        jPanel1.add(knapE);
        knapE.setBounds(150, 60, 60, 42);

        knapR.setText("R");
        knapR.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapR.setContentAreaFilled(false);
        knapR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapRActionPerformed(evt);
            }
        });
        jPanel1.add(knapR);
        knapR.setBounds(220, 60, 60, 42);

        knapT.setText("T");
        knapT.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapT.setContentAreaFilled(false);
        knapT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapTActionPerformed(evt);
            }
        });
        jPanel1.add(knapT);
        knapT.setBounds(290, 60, 60, 42);

        knapY.setText("Y");
        knapY.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapY.setContentAreaFilled(false);
        knapY.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapYActionPerformed(evt);
            }
        });
        jPanel1.add(knapY);
        knapY.setBounds(360, 60, 60, 42);

        knapU.setText("U");
        knapU.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapU.setContentAreaFilled(false);
        knapU.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapUActionPerformed(evt);
            }
        });
        jPanel1.add(knapU);
        knapU.setBounds(430, 60, 60, 42);

        knapI.setText("I");
        knapI.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapI.setContentAreaFilled(false);
        knapI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapIActionPerformed(evt);
            }
        });
        jPanel1.add(knapI);
        knapI.setBounds(500, 60, 60, 42);

        knapO.setText("O");
        knapO.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapO.setContentAreaFilled(false);
        knapO.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapOActionPerformed(evt);
            }
        });
        jPanel1.add(knapO);
        knapO.setBounds(570, 60, 60, 42);

        knapP.setText("P");
        knapP.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapP.setContentAreaFilled(false);
        knapP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapPActionPerformed(evt);
            }
        });
        jPanel1.add(knapP);
        knapP.setBounds(640, 60, 60, 42);

        knapJ.setText("J");
        knapJ.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapJ.setContentAreaFilled(false);
        knapJ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapJActionPerformed(evt);
            }
        });
        jPanel1.add(knapJ);
        knapJ.setBounds(430, 110, 60, 42);

        knapH.setText("H");
        knapH.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapH.setContentAreaFilled(false);
        knapH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapHActionPerformed(evt);
            }
        });
        jPanel1.add(knapH);
        knapH.setBounds(360, 110, 60, 42);

        knapG.setText("G");
        knapG.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapG.setContentAreaFilled(false);
        knapG.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapGActionPerformed(evt);
            }
        });
        jPanel1.add(knapG);
        knapG.setBounds(290, 110, 60, 42);

        knapF.setText("F");
        knapF.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapF.setContentAreaFilled(false);
        knapF.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapFActionPerformed(evt);
            }
        });
        jPanel1.add(knapF);
        knapF.setBounds(220, 110, 60, 42);

        knapD.setText("D");
        knapD.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapD.setContentAreaFilled(false);
        knapD.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapDActionPerformed(evt);
            }
        });
        jPanel1.add(knapD);
        knapD.setBounds(150, 110, 60, 42);

        knapS.setText("S");
        knapS.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapS.setContentAreaFilled(false);
        knapS.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapSActionPerformed(evt);
            }
        });
        jPanel1.add(knapS);
        knapS.setBounds(80, 110, 60, 42);

        knapA.setText("A");
        knapA.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapA.setContentAreaFilled(false);
        knapA.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapAActionPerformed(evt);
            }
        });
        jPanel1.add(knapA);
        knapA.setBounds(10, 110, 60, 42);

        knapÅ.setText("Å");
        knapÅ.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapÅ.setContentAreaFilled(false);
        knapÅ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapÅActionPerformed(evt);
            }
        });
        jPanel1.add(knapÅ);
        knapÅ.setBounds(710, 60, 60, 42);

        knapK.setText("K");
        knapK.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapK.setContentAreaFilled(false);
        knapK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapKActionPerformed(evt);
            }
        });
        jPanel1.add(knapK);
        knapK.setBounds(500, 110, 60, 42);

        knapL.setText("L");
        knapL.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapL.setContentAreaFilled(false);
        knapL.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapLActionPerformed(evt);
            }
        });
        jPanel1.add(knapL);
        knapL.setBounds(570, 110, 60, 42);

        knapÆ.setText("Æ");
        knapÆ.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapÆ.setContentAreaFilled(false);
        knapÆ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapÆActionPerformed(evt);
            }
        });
        jPanel1.add(knapÆ);
        knapÆ.setBounds(640, 110, 60, 42);

        knapØ.setText("Ø");
        knapØ.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapØ.setContentAreaFilled(false);
        knapØ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapØActionPerformed(evt);
            }
        });
        jPanel1.add(knapØ);
        knapØ.setBounds(710, 110, 60, 42);

        knapKroko.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
        knapKroko.setText("CAPS");
        knapKroko.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapKroko.setContentAreaFilled(false);
        knapKroko.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapKrokoActionPerformed(evt);
            }
        });
        jPanel1.add(knapKroko);
        knapKroko.setBounds(10, 160, 60, 42);

        knapZ.setText("Z");
        knapZ.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapZ.setContentAreaFilled(false);
        knapZ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapZActionPerformed(evt);
            }
        });
        jPanel1.add(knapZ);
        knapZ.setBounds(80, 160, 60, 42);

        knapX.setBackground(new java.awt.Color(0, 0, 0));
        knapX.setText("X");
        knapX.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapX.setContentAreaFilled(false);
        knapX.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapXActionPerformed(evt);
            }
        });
        jPanel1.add(knapX);
        knapX.setBounds(150, 160, 60, 42);

        knapC.setText("C");
        knapC.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapC.setContentAreaFilled(false);
        knapC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapCActionPerformed(evt);
            }
        });
        jPanel1.add(knapC);
        knapC.setBounds(220, 160, 60, 42);

        knapV.setText("V");
        knapV.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapV.setContentAreaFilled(false);
        knapV.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapVActionPerformed(evt);
            }
        });
        jPanel1.add(knapV);
        knapV.setBounds(290, 160, 60, 42);

        knapB.setText("B");
        knapB.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapB.setContentAreaFilled(false);
        knapB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapBActionPerformed(evt);
            }
        });
        jPanel1.add(knapB);
        knapB.setBounds(360, 160, 60, 42);

        knapN.setText("N");
        knapN.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapN.setContentAreaFilled(false);
        knapN.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapNActionPerformed(evt);
            }
        });
        jPanel1.add(knapN);
        knapN.setBounds(430, 160, 60, 42);

        knapM.setText("M");
        knapM.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapM.setContentAreaFilled(false);
        knapM.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapMActionPerformed(evt);
            }
        });
        jPanel1.add(knapM);
        knapM.setBounds(500, 160, 60, 42);

        knapKomma.setText(",");
        knapKomma.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapKomma.setContentAreaFilled(false);
        knapKomma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapKommaActionPerformed(evt);
            }
        });
        jPanel1.add(knapKomma);
        knapKomma.setBounds(570, 160, 60, 42);

        knapPunktum.setText(".");
        knapPunktum.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapPunktum.setContentAreaFilled(false);
        knapPunktum.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapPunktumActionPerformed(evt);
            }
        });
        jPanel1.add(knapPunktum);
        knapPunktum.setBounds(640, 160, 60, 42);

        knapBindestreg.setText("-");
        knapBindestreg.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapBindestreg.setContentAreaFilled(false);
        knapBindestreg.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapBindestregActionPerformed(evt);
            }
        });
        jPanel1.add(knapBindestreg);
        knapBindestreg.setBounds(710, 160, 60, 42);

        knapSpace.setText("Mellemrum");
        knapSpace.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        knapSpace.setContentAreaFilled(false);
        knapSpace.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knapSpaceActionPerformed(evt);
            }
        });
        jPanel1.add(knapSpace);
        knapSpace.setBounds(150, 210, 480, 50);

        backspaceKnap.setText("Slet");
        backspaceKnap.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        backspaceKnap.setContentAreaFilled(false);
        backspaceKnap.setOpaque(false);
        backspaceKnap.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                backspaceKnapActionPerformed(evt);
            }
        });
        jPanel1.add(backspaceKnap);
        backspaceKnap.setBounds(710, 10, 60, 42);

        jButton1.setText("Enter");
        jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jButton1.setContentAreaFilled(false);
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jPanel1.add(jButton1);
        jButton1.setBounds(640, 210, 130, 50);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 799, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void knap2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap2ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_2);
            robot.keyRelease(KeyEvent.VK_2);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap2ActionPerformed

    private void knap3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap3ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_3);
            robot.keyRelease(KeyEvent.VK_3);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap3ActionPerformed

    private void knap6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap6ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_6);
            robot.keyRelease(KeyEvent.VK_6);
        } catch (AWTException ex) {
       System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap6ActionPerformed

    private void knap5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap5ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_5);
            robot.keyRelease(KeyEvent.VK_5);
        } catch (AWTException ex) {
       System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap5ActionPerformed

    private void knap4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap4ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_4);
            robot.keyRelease(KeyEvent.VK_4);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap4ActionPerformed

    private void knap9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap9ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_9);
            robot.keyRelease(KeyEvent.VK_9);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap9ActionPerformed

    private void knap8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap8ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_8);
            robot.keyRelease(KeyEvent.VK_8);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap8ActionPerformed

    private void knap7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap7ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_7);
            robot.keyRelease(KeyEvent.VK_7);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap7ActionPerformed

    private void knap0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap0ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_0);
            robot.keyRelease(KeyEvent.VK_0);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap0ActionPerformed

    private void knap1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knap1ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_1);
            robot.keyRelease(KeyEvent.VK_1);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knap1ActionPerformed

    private void knapSletActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapSletActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_TAB);
            robot.keyRelease(KeyEvent.VK_TAB);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapSletActionPerformed

    private void knapWActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapWActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_W);
            robot.keyRelease(KeyEvent.VK_W);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapWActionPerformed

    private void knapQActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapQActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_Q);
            robot.keyRelease(KeyEvent.VK_Q);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapQActionPerformed

    private void knapEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapEActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_E);
            robot.keyRelease(KeyEvent.VK_E);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapEActionPerformed

    private void knapRActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapRActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_R);
            robot.keyRelease(KeyEvent.VK_R);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapRActionPerformed

    private void knapTActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapTActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_T);
            robot.keyRelease(KeyEvent.VK_ALT);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapTActionPerformed

    private void knapYActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapYActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_Y);
            robot.keyRelease(KeyEvent.VK_Y);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapYActionPerformed

    private void knapUActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapUActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_U);
            robot.keyRelease(KeyEvent.VK_U);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapUActionPerformed

    private void knapIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapIActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_I);
            robot.keyRelease(KeyEvent.VK_I);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapIActionPerformed

    private void knapOActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapOActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_O);
            robot.keyRelease(KeyEvent.VK_O);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapOActionPerformed

    private void knapPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapPActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_P);
            robot.keyRelease(KeyEvent.VK_P);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapPActionPerformed

    private void knapJActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapJActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_J);
            robot.keyRelease(KeyEvent.VK_J);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapJActionPerformed

    private void knapHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapHActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_H);
            robot.keyRelease(KeyEvent.VK_H);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapHActionPerformed

    private void knapGActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapGActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_G);
            robot.keyRelease(KeyEvent.VK_G);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapGActionPerformed

    private void knapFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapFActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_F);
            robot.keyRelease(KeyEvent.VK_F);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapFActionPerformed

    private void knapDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapDActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_D);
            robot.keyRelease(KeyEvent.VK_D);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }         
    }//GEN-LAST:event_knapDActionPerformed

    private void knapSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapSActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_S);
            robot.keyRelease(KeyEvent.VK_S);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapSActionPerformed

    private void knapAActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapAActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_A);
            robot.keyRelease(KeyEvent.VK_A);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapAActionPerformed

    private void knapÅActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapÅActionPerformed
        try {
            Robot robot = new Robot();
            robot.keyPress(KeyEvent.VK_ALT);
//            robot.keyPress(KeyEvent.VK_NUMPAD0);
            robot.keyPress(KeyEvent.VK_NUMPAD1);
            robot.keyPress(KeyEvent.VK_NUMPAD3);
            robot.keyPress(KeyEvent.VK_NUMPAD4);
            robot.keyRelease(KeyEvent.VK_ALT);
            robot.keyRelease(KeyEvent.VK_NUMPAD1);
            robot.keyRelease(KeyEvent.VK_NUMPAD3);
            robot.keyRelease(KeyEvent.VK_NUMPAD4);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }   
    }//GEN-LAST:event_knapÅActionPerformed

    private void knapKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapKActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_K);
            robot.keyRelease(KeyEvent.VK_K);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapKActionPerformed

    private void knapLActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapLActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_L);
            robot.keyRelease(KeyEvent.VK_L);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }              
    }//GEN-LAST:event_knapLActionPerformed

    private void knapÆActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapÆActionPerformed
        try {
            Robot robot = new Robot();
            robot.keyPress(KeyEvent.VK_ALT);
            robot.keyPress(KeyEvent.VK_NUMPAD0);
            robot.keyPress(KeyEvent.VK_NUMPAD2);
            robot.keyPress(KeyEvent.VK_NUMPAD3);
            robot.keyPress(KeyEvent.VK_NUMPAD0);
            robot.keyRelease(KeyEvent.VK_ALT);
            robot.keyRelease(KeyEvent.VK_NUMPAD0);
            robot.keyRelease(KeyEvent.VK_NUMPAD2);
            robot.keyRelease(KeyEvent.VK_NUMPAD3);
            robot.keyRelease(KeyEvent.VK_NUMPAD0);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }   
    }//GEN-LAST:event_knapÆActionPerformed

    private void knapØActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapØActionPerformed
        try {
            Robot robot = new Robot();
            robot.keyPress(KeyEvent.VK_ALT);
            robot.keyPress(KeyEvent.VK_NUMPAD0);
            robot.keyPress(KeyEvent.VK_NUMPAD2);
            robot.keyPress(KeyEvent.VK_NUMPAD4);
            robot.keyPress(KeyEvent.VK_NUMPAD8);
            robot.keyRelease(KeyEvent.VK_ALT);
            robot.keyRelease(KeyEvent.VK_NUMPAD0);
            robot.keyRelease(KeyEvent.VK_NUMPAD2);
            robot.keyRelease(KeyEvent.VK_NUMPAD4);
            robot.keyRelease(KeyEvent.VK_NUMPAD8);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }   
    }//GEN-LAST:event_knapØActionPerformed

    private void knapKrokoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapKrokoActionPerformed
        Toolkit.getDefaultToolkit().getLockingKeyState(VK_CAPS_LOCK);
        try {
                    setBackground(Color.RED);
                    Robot robot = new Robot();
                    robot.keyRelease(KeyEvent.VK_CAPS_LOCK);
                } catch (AWTException ex) {
                    System.out.println("Fejl: " + ex.getLocalizedMessage());
                }
                try {
                    setBackground(Color.GREEN);
                    Robot robot = new Robot();
                    robot.keyPress(KeyEvent.VK_CAPS_LOCK);
                } catch (AWTException ex) {
                    System.out.println("Fejl: " + ex.getLocalizedMessage());
                }
            
                
    }//GEN-LAST:event_knapKrokoActionPerformed

    private void knapZActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapZActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_Z);
            robot.keyRelease(KeyEvent.VK_Z);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapZActionPerformed

    private void knapXActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapXActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_X);
            robot.keyRelease(KeyEvent.VK_X);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }
    }//GEN-LAST:event_knapXActionPerformed

    private void knapCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapCActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_C);
            robot.keyRelease(KeyEvent.VK_C);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapCActionPerformed

    private void knapVActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapVActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_V);
            robot.keyRelease(KeyEvent.VK_V);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapVActionPerformed

    private void knapBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapBActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_B);
            robot.keyRelease(KeyEvent.VK_B);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }
    }//GEN-LAST:event_knapBActionPerformed

    private void knapNActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapNActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_N);
            robot.keyRelease(KeyEvent.VK_N);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapNActionPerformed

    private void knapMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapMActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_M);
            robot.keyRelease(KeyEvent.VK_M);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapMActionPerformed

    private void knapKommaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapKommaActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_COMMA);
            robot.keyRelease(KeyEvent.VK_COMMA);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapKommaActionPerformed

    private void knapPunktumActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapPunktumActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_PERIOD);
            robot.keyRelease(KeyEvent.VK_PERIOD);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapPunktumActionPerformed

    private void knapBindestregActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapBindestregActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_MINUS);
            robot.keyRelease(KeyEvent.VK_MINUS);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }            
    }//GEN-LAST:event_knapBindestregActionPerformed

    private void knapSpaceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knapSpaceActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_SPACE);
            robot.keyRelease(KeyEvent.VK_SPACE);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }
    }//GEN-LAST:event_knapSpaceActionPerformed

    private void backspaceKnapActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backspaceKnapActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_BACK_SPACE);
            robot.keyRelease(KeyEvent.VK_BACK_SPACE);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }
    }//GEN-LAST:event_backspaceKnapActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        try {
            Robot robot = new Robot ();
            robot.keyPress(KeyEvent.VK_ENTER);
            robot.keyRelease(KeyEvent.VK_ENTER);
        } catch (AWTException ex) {
            System.out.println("Fejl: " + ex.getLocalizedMessage());
        }
    }//GEN-LAST:event_jButton1ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton backspaceKnap;
    private javax.swing.JButton jButton1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JButton knap0;
    private javax.swing.JButton knap1;
    private javax.swing.JButton knap2;
    private javax.swing.JButton knap3;
    private javax.swing.JButton knap4;
    private javax.swing.JButton knap5;
    private javax.swing.JButton knap6;
    private javax.swing.JButton knap7;
    private javax.swing.JButton knap8;
    private javax.swing.JButton knap9;
    private javax.swing.JButton knapA;
    private javax.swing.JButton knapB;
    private javax.swing.JButton knapBindestreg;
    private javax.swing.JButton knapC;
    private javax.swing.JButton knapD;
    private javax.swing.JButton knapE;
    private javax.swing.JButton knapF;
    private javax.swing.JButton knapG;
    private javax.swing.JButton knapH;
    private javax.swing.JButton knapI;
    private javax.swing.JButton knapJ;
    private javax.swing.JButton knapK;
    private javax.swing.JButton knapKomma;
    private javax.swing.JButton knapKroko;
    private javax.swing.JButton knapL;
    private javax.swing.JButton knapM;
    private javax.swing.JButton knapN;
    private javax.swing.JButton knapO;
    private javax.swing.JButton knapP;
    private javax.swing.JButton knapPunktum;
    private javax.swing.JButton knapQ;
    private javax.swing.JButton knapR;
    private javax.swing.JButton knapS;
    private javax.swing.JButton knapSlet;
    private javax.swing.JButton knapSpace;
    private javax.swing.JButton knapT;
    private javax.swing.JButton knapU;
    private javax.swing.JButton knapV;
    private javax.swing.JButton knapW;
    private javax.swing.JButton knapX;
    private javax.swing.JButton knapY;
    private javax.swing.JButton knapZ;
    private javax.swing.JButton knapÅ;
    private javax.swing.JButton knapÆ;
    private javax.swing.JButton knapØ;
    // End of variables declaration//GEN-END:variables
}
